#include <stdio.h>
#include <stdlib.h>

int main() {
  int numb;
  int absolute;
  printf("请输入一个整数：");
  scanf("%d", &numb);

  if (numb > 0)
    absolute = numb;
  else
    absolute = -numb;

  printf("%d的绝对值是%d\n", numb, absolute);
  system("pause");
  return 0;
}